package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 用户资金账户表
 * </p>
 *
 * @author leehao
 * @since 2019-05-07
 */
@TableName("c_account")
public class CAccount extends Model<CAccount> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cid", type = IdType.INPUT)
    private Integer cid;

    /**
     * 余额
     */
    private BigDecimal money;

    /**
     * 积分
     */
    private BigDecimal point;
    
    /**
     * 贡献值
     */
    private BigDecimal donate;
    
    /**
     * 共享值
     */
    private BigDecimal share;

    /**
     * 冻结金额
     */
    private BigDecimal freezeMoney;

    /**
     * 冻结积分
     */
    private BigDecimal freezePoint;

    /**
     * 冻结贡献值
     */
    private BigDecimal freezeDonate;

    /**
     * 版本号用作于乐观锁
     */
    @Version
    private Integer version;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }
    public BigDecimal getPoint() {
        return point;
    }

    public void setPoint(BigDecimal point) {
        this.point = point;
    }
    
    public BigDecimal getDonate() {
		return donate;
	}

	public void setDonate(BigDecimal donate) {
		this.donate = donate;
	}

	public BigDecimal getShare() {
		return share;
	}

	public void setShare(BigDecimal share) {
		this.share = share;
	}

    public BigDecimal getFreezeMoney() {
        return freezeMoney;
    }

    public void setFreezeMoney(BigDecimal freezeMoney) {
        this.freezeMoney = freezeMoney;
    }

    public BigDecimal getFreezePoint() {
        return freezePoint;
    }

    public void setFreezePoint(BigDecimal freezePoint) {
        this.freezePoint = freezePoint;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public BigDecimal getFreezeDonate() {
        return freezeDonate;
    }

    public void setFreezeDonate(BigDecimal freezeDonate) {
        this.freezeDonate = freezeDonate;
    }

    @Override
    protected Serializable pkVal() {
        return this.cid;
    }

    @Override
    public String toString() {
        return "CAccount{" +
        "cid=" + cid +
        ", money=" + money +
        ", point=" + point +
        ", version=" + version +
        "}";
    }
}
